package com.lifeng.patterns.strategy;

import com.lifeng.patterns.utils.MySpringUtil;
import org.springframework.stereotype.Service;


/**
 * Created by lifeng on 2019/8/15.
 */
@Service
public class PayTypeSelect {

    /**
     * 支付方式选择
     * */
    public PayType select(String payTypeFlag){
        PayType payType = (PayType) MySpringUtil.applicationContext.getBean(payTypeFlag);
        return payType;
    }
}
